﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200105D RID: 4189
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournRenameArchiveCsReq : IMessage<RogueTournRenameArchiveCsReq>, IMessage, IEquatable<RogueTournRenameArchiveCsReq>, IDeepCloneable<RogueTournRenameArchiveCsReq>, IBufferMessage
	{
		// Token: 0x170034DC RID: 13532
		// (get) Token: 0x0600BB1E RID: 47902 RVA: 0x001F84B1 File Offset: 0x001F66B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournRenameArchiveCsReq> Parser
		{
			get
			{
				return RogueTournRenameArchiveCsReq._parser;
			}
		}

		// Token: 0x170034DD RID: 13533
		// (get) Token: 0x0600BB1F RID: 47903 RVA: 0x001F84B8 File Offset: 0x001F66B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournRenameArchiveCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170034DE RID: 13534
		// (get) Token: 0x0600BB20 RID: 47904 RVA: 0x001F84CA File Offset: 0x001F66CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournRenameArchiveCsReq.Descriptor;
			}
		}

		// Token: 0x0600BB21 RID: 47905 RVA: 0x001F84D1 File Offset: 0x001F66D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournRenameArchiveCsReq()
		{
		}

		// Token: 0x0600BB22 RID: 47906 RVA: 0x001F84E4 File Offset: 0x001F66E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournRenameArchiveCsReq(RogueTournRenameArchiveCsReq other) : this()
		{
			this.maxTimes_ = other.maxTimes_;
			this.name_ = other.name_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BB23 RID: 47907 RVA: 0x001F8515 File Offset: 0x001F6715
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournRenameArchiveCsReq Clone()
		{
			return new RogueTournRenameArchiveCsReq(this);
		}

		// Token: 0x170034DF RID: 13535
		// (get) Token: 0x0600BB24 RID: 47908 RVA: 0x001F851D File Offset: 0x001F671D
		// (set) Token: 0x0600BB25 RID: 47909 RVA: 0x001F8525 File Offset: 0x001F6725
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MaxTimes
		{
			get
			{
				return this.maxTimes_;
			}
			set
			{
				this.maxTimes_ = value;
			}
		}

		// Token: 0x170034E0 RID: 13536
		// (get) Token: 0x0600BB26 RID: 47910 RVA: 0x001F852E File Offset: 0x001F672E
		// (set) Token: 0x0600BB27 RID: 47911 RVA: 0x001F8536 File Offset: 0x001F6736
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Name
		{
			get
			{
				return this.name_;
			}
			set
			{
				this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x0600BB28 RID: 47912 RVA: 0x001F8549 File Offset: 0x001F6749
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournRenameArchiveCsReq);
		}

		// Token: 0x0600BB29 RID: 47913 RVA: 0x001F8558 File Offset: 0x001F6758
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournRenameArchiveCsReq other)
		{
			return other != null && (other == this || (this.MaxTimes == other.MaxTimes && !(this.Name != other.Name) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BB2A RID: 47914 RVA: 0x001F85A8 File Offset: 0x001F67A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MaxTimes != 0U)
			{
				num ^= this.MaxTimes.GetHashCode();
			}
			if (this.Name.Length != 0)
			{
				num ^= this.Name.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BB2B RID: 47915 RVA: 0x001F8602 File Offset: 0x001F6802
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BB2C RID: 47916 RVA: 0x001F860A File Offset: 0x001F680A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BB2D RID: 47917 RVA: 0x001F8614 File Offset: 0x001F6814
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Name.Length != 0)
			{
				output.WriteRawTag(98);
				output.WriteString(this.Name);
			}
			if (this.MaxTimes != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.MaxTimes);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BB2E RID: 47918 RVA: 0x001F8674 File Offset: 0x001F6874
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MaxTimes != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MaxTimes);
			}
			if (this.Name.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BB2F RID: 47919 RVA: 0x001F86D0 File Offset: 0x001F68D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournRenameArchiveCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MaxTimes != 0U)
			{
				this.MaxTimes = other.MaxTimes;
			}
			if (other.Name.Length != 0)
			{
				this.Name = other.Name;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BB30 RID: 47920 RVA: 0x001F8725 File Offset: 0x001F6925
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BB31 RID: 47921 RVA: 0x001F8730 File Offset: 0x001F6930
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 98U)
				{
					if (num != 120U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MaxTimes = input.ReadUInt32();
					}
				}
				else
				{
					this.Name = input.ReadString();
				}
			}
		}

		// Token: 0x04004B5E RID: 19294
		private static readonly MessageParser<RogueTournRenameArchiveCsReq> _parser = new MessageParser<RogueTournRenameArchiveCsReq>(() => new RogueTournRenameArchiveCsReq());

		// Token: 0x04004B5F RID: 19295
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004B60 RID: 19296
		public const int MaxTimesFieldNumber = 15;

		// Token: 0x04004B61 RID: 19297
		private uint maxTimes_;

		// Token: 0x04004B62 RID: 19298
		public const int NameFieldNumber = 12;

		// Token: 0x04004B63 RID: 19299
		private string name_ = "";
	}
}
